#if !defined(AFX_CSPRDCZ_H__CAE1CE7B_193E_447E_9740_5CD67441F1C0__INCLUDED_)
#define AFX_CSPRDCZ_H__CAE1CE7B_193E_447E_9740_5CD67441F1C0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CSPRDcz.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCSPRDcz dialog

class CCSPRDcz : public CDialog
{
// Construction
public:
	void WriteWeight(_RecordsetPtr &pRs);
	float fBminFBmax(int flag,long DH);
	CString HDcrudeCZid(CString CustomID);
	CCSPRDcz(CWnd* pParent = NULL);   // standard constructor
	bool ConnectionDatamdb(_ConnectionPtr &pCon,CString strMdbName);

// Dialog Data
	//{{AFX_DATA(CCSPRDcz)
	enum { IDD = IDD_ADDFIELD_DIALOG1 };
	CString	m_pathName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCSPRDcz)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int FilterPRsDY(_RecordsetPtr &pRs,CString str);
	_ConnectionPtr m_pCon;

	// Generated message map functions
	//{{AFX_MSG(CCSPRDcz)
	virtual void OnOK();
	afx_msg void OnButton2();
	virtual BOOL OnInitDialog();
	afx_msg void OnGetDbpath();
	afx_msg void OnCreateCrudeCZ();
	
	afx_msg void OnCreateLugDiaofCSPRCZ();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void InitEnvironVar();
	void InitDBPath();
	_RecordsetPtr m_pRD;
	void WritefBmax();
	_RecordsetPtr m_pRes;
	_RecordsetPtr m_pRcz;
	afx_msg void OnBnClickedCancel();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CSPRDCZ_H__CAE1CE7B_193E_447E_9740_5CD67441F1C0__INCLUDED_)
